package com.thiswhyme.sentinel.server2.feign;

import com.thiswhyme.common.response.ResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 默认fallback demo
 * Created by thiswhyme on 2020/9/3.
 */
@FeignClient(name = "sentinel-server1", contextId = "default-demo")
public interface UserFeignService {

    @GetMapping("/user1/user-name")
    ResponseVo<String> queryUserName(@RequestParam("userId") Integer userId);
}
